package com.oceansoft.mobile.econsole.modules.jlapi.entity;

import java.util.Date;

/**
 * Created by smc on 2016/2/19.
 * 内网查询条件实体类   ==>表名称: DDX_IN_QUERY_SERVICE
 */
public class InQueryServiceInfo {

    public static final String API_001 = "010101";//实名认证、一键核查身份证号核查**
    public static final String API_002 = "010102";//车辆违章查询
    public static final String API_003 = "010103";//车辆信息查询、一键核查车牌号核查**
    public static final String API_004 = "010104";//驾驶员查询**
    public static final String API_005 = "010105";//已决在押人员**
    public static final String API_006 = "010106";//重名查询
    public static final String API_007 = "010107";//驾照查询、驾驶证记分查询
    public static final String API_008 = "010108";//短信
    public static final String API_009 = "010109";//车辆信息绑定
    public static final String API_010 = "010110";//驾驶证绑定
    public static final String API_011 = "010111";//身份证到期
    public static final String API_012 = "010112";//驾驶证到期
    public static final String API_013 = "010113";//年检到期提醒
    public static final String API_014 = "010114";//违章提醒

    public static final String API_ASYNC_Y = "Y";
    public static final String API_ASYNC_N = "N";

    public InQueryServiceInfo(){}

    public InQueryServiceInfo(String sn,String action,String async,String command,String hash
        ,Date q_start,String q_ip,long q_timeout){
        this.sn = sn;
        this.action = action;
        this.async = async;
        this.command = command;
        this.hash = hash;
        this.q_start = q_start;
        this.q_ip = q_ip;
        this.q_timeout = q_timeout;
    }

    private String sn; //业务查询流水号

    private String action;  // 查询命令标识

    private String async;   //是否异步

    private String command;  // 查询命令内容  json字符串

    private String hash;  //散列存储  验证json字符串的合法

    private Date q_start;  //请求查询发起时间

    private  String q_ip; //查询客户端ip

    private long  q_timeout;   //查询超时时间  当查询超过这个时间则不发起请求

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getAsync() {
        return async;
    }

    public void setAsync(String async) {
        this.async = async;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public Date getQ_start() {
        return q_start;
    }

    public void setQ_start(Date q_start) {
        this.q_start = q_start;
    }

    public String getQ_ip() {
        return q_ip;
    }

    public void setQ_ip(String q_ip) {
        this.q_ip = q_ip;
    }

    public long getQ_timeout() {
        return q_timeout;
    }

    public void setQ_timeout(long q_timeout) {
        this.q_timeout = q_timeout;
    }
}